package com.gt.admin.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@TableName("sc_sickness_menu")
@Data
public class SicknessMenu {

    @TableId(type = IdType.AUTO)
    private Long sickId;

    @ApiModelProperty(value = "筛查目录名称")
    private String sickName;

    @ApiModelProperty(value = "筛查目录级别")
    private Long level;

    @ApiModelProperty(value = "父级id")
    private Long parentId;

    @ApiModelProperty(value = "排序")
    private Long sort;

    @ApiModelProperty(value = "项目标识，M目录，P项目")
    private String proFlag;

    @TableField(exist = false)
    @ApiModelProperty(value = "子级列表")
    private List<SicknessMenu> childrenList = new ArrayList<>();
}
